var futuresOption = {
	title: "Futures Option Quote",
	sections: {
		core: {
			title: "Quote", 
			components: [{
				type: "form", 
				contents: [
					{
						schema: {
							ric: {back: "ASSET.RIC", label: "RIC", type: "Text", validators: ['required']},
							category: {back: "ASSET.ASSETCATEGORY", label: "Category", type :"ViewDiv", hasMeaning: true},
							permid: {back: "ASSET.PERMID", label: "PERMID", type: "Text", readOnly: true },
							tag: {back: "ASSET.TAG", label: "Tag", type: "Text", readOnly: true },
							state: {back: "ASSET.ASSETSTATE", label: "Asset State", type :"ViewDiv"},
							retireDate: {back: "ASSET.RETIREDATE", label: "Retire Date", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},
							currency: {back: "ASSET.QUOTATIONCURRENCY", label: "Currency", type: "SelectDropdown", elem_id: "currency", actions: [0,1,2,3]},
							exchange: {back: "ASSET.QUOTATIONGROUPEDBYPSEUDOEXCH", label: "Exchange", type: "SelectDropdown", elem_id: "exchange", actions: [0,1,2,3]/*, validators: ['requiredResult']*/ },
							trades: {back: "ASSET.TRADES", label:"",type:"Accessory"},
							sourceType: {back: "BODY_GROUP.SOURCETYPE", label:"Source Type",type:"ViewDiv"},
							sourceName: {back: "BODY_GROUP.COMMONNAME", label:"Source Name",type:"ViewDiv"},
					/*****/ expiry: {back: "", label: "Expiry", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},
							strikePrice: {back: "", label: "Strike Price", type :"DigitNumber"},
							strikePriceMultiplier: {back: "", label: "StrikePriceMultiplier", type :"DigitNumber"},
							callPutOption: {back: "", label: "Call Put Option", type: "SelectDropdown", elem_id: "callputoption"},
							lotSize: {back: "", label: "Lot Size", type :"DigitNumber"},
							lotUnit: {back: "", label: "Lot Unit", type: "SelectDropdown", elem_id: "lotunit"},
							exerciseStyle: {back: "", label: "Exercise Style", type: "SelectDropdown", elem_id: "exercisestyle"},
							initialMargin: {back: "", label: "Initial Margin", type: "DigitNumber"},
							tickValue: {back: "", label: "Tick Value", type: "DigitNumber"},
							dailyTradingLimit: {back: "", label: "Daily Trading Limit", type: "DigitNumber"},
							methodOfDelivery: {back: "", label: "Method Of Delivery", type: "SelectDropdown", elem_id: "methodofdelivery"},
							cashInLieu: {back: "", label: "Cash In Lieu", type: "DigitNumber"},							
							firstDeliveryDay: {back: "", label: "First Delivery Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},
							lastDeliveryDay: {back: "", label: "Last Delivery Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},
							firstNoticeDay: {back: "", label: "First Notice Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},
							firstTradingDay: {back: "", label: "First Trading Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},							
							lastTradingDay: {back: "", label: "Last Trading Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},													
							tradingStyle: {back: "", label: "Trading Style", type: "SelectDropdown", elem_id: "tradingstyle"},
							periodicity: {back: "", label: "Periodicity", type: "SelectDropdown", elem_id: "periodicity"},
							adjustedFlag: {back: "", label: "Adjusted Flag", type: "SelectDropdown", elem_id: "adjustedflag"},
							contractType: {back: "", label: "Contract Type", type: "SelectDropdown", elem_id: "contracttype"},
							contractDate: {back: "", label: "Contract Date", type :"jqueryui.Date", validators: ['required',{type:"dateFormat", format: "dd-MM-yyyy"}]},
					/*****/	aiiCode: {back: "", label: "AII Code", type: "Text"}							
						}
					}
				]
			}]
		},
        ladder: {
        	title: "Ladder",
        	components: [
        	    {
        	    	type: "table", 
        	    	id: "tickLadder",
        	    	caption: "Tick Ladder Assignment", 
        	    	history: true, 
        	    	actions: [1,2,3,4],
        	    	cols : [
        	        	{name: "Flag", field: "flag", type: "Boolean", editable: true, editType: "Checkbox" },
        	            {name: "Name", field: "name", type: "String", editable: true, editType: "Text"},
        	            {name: "Effective From", field: "effective_from", type: "String", editable: true, editType: "Text"},
        	            {name: "Effective To", field: "effective_to", type: "String", editable: true, editType: "Text"},
        	            {name: "Price Indicator", field: "price_indicator", type: "String", editable: true, editType: "Text"},
        	            {name: "Meaning", field: "meaning", type: "String", editable: true, editType: "Textarea"},
        	            {name: "Begin Date", field: "begin_date", type: "Date"}
        	        ]
        	    },
        	    {
        	    	type: "table", 
        	    	id: "lotLadder",
        	    	caption: "Lot Ladder Assignment",
        	    	history: true, 
        	    	actions: [1,2,3,4],
        	    	cols : [
        	        	{name: "Flag", field: "flag", type: "Boolean", editable: true, editType: "Checkbox" },
        	        	{name: "Name", field: "name", type: "String", editable: true, editType: "Text"},
        	        	{name: "Effective From", field: "effective_from", type: "String", editable: true, editType: "Text"},
        	        	{name: "Effective To", field: "effective_to", type: "String", editable: true, editType: "Text"},
        	        	{name: "Price Indicator", field: "price_indicator", type: "String", editable: true, editType: "Text"},
        	        	{name: "Meaning", field: "meaning", type: "String", editable: true, editType: "Textarea"},
        	        	{name: "Begin Date", field: "begin_date", type: "Date"}
        	        ]
        	    }
            ]
		},
        name: {
        	title: "Name",
        	components: [
        	    {
        	    	type: "table", 
        	    	id: "NAME",
        	    	caption: "Name", 
        	    	history: true, 
        	    	actions: [1,2,3,4],
        	    	cols : [
						{name: "Property", field: "type", type: "String", editable: true, editType: "SelectDropdown" },
						{name: "Value", field: "value", type: "String", editable: true, editType: "Text"},
						{name: "Begin Date", field: "begin_date", type: "Date"}
					]
        	    },
        	    {
        	    	type: "table", 
        	    	id: "localLanguageName",
        	    	caption: "Local Language Name", 
        	    	history: true, 
        	    	actions: [1,2,3,4],
        	    	cols : [
        	        	{name: "Flag", field: "flag", type: "Boolean", editable: true, editType: "Checkbox" },
        	        	{name: "Property", field: "property", type: "String", editable: true, editType: "SelectDropdown"},
        	        	{name: "Language Code", field: "language_code", type: "String", editable: true, editType: "SelectDropdown"},
        	        	{name: "Value", field: "value", type: "String", editable: true, editType: "Text"},
        	        	{name: "Transliterated Name", field: "transliterated_name", type: "String", editable: true, editType: "Text"},
        	        	{name: "Begin Date", field: "begin_date", type: "Date"}
        	        ]
        	    }
        	]
        },
        identifier: {
        	title: "Identifier",
        	components: [
        	    {
        	    	type: "table", 
        	    	id: "identifier",
        	    	caption: "Identifier", 
        	    	history: true, 
        	    	actions: [1,2,3,4], 
        	    	cols : [
        	        	{name: "Property", field: "property", type: "String", editable: true, editType: "SelectDropdown" },
        	        	{name: "Value", field: "value", type: "String", editable: true, editType: "Text"},
        	        	{name: "Begin Date", field: "begin_date", type: "Date"}
        	        ]
        	    }
        	]
        },
        clsSchema: {
        	title: "Classification Schema",
        	components: [
        	    {
        	    	type: "table", 
        	    	id: "CLASSIFICATIONSCHEME",
        	    	caption: "Classification Schema", 
        	    	history: true, 
        	    	actions: [1,2,3,4], 
        	    	cols : [
        	                {name: "Property", field: "type", type: "String", editable: true, editType: "SelectDropdown" },
        	                {name: "Value", field: "value", type: "String", editable: true, editType: "SelectDropdown_c", classifier: "ASSET.CLASSIFIER"},
        	                {name: "Meaning", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content"},
        	                {name: "Begin Date", field: "begin_date", type: "Date"}
        	        ]
        	    }
        	]
        },
        sedol: {
        	title: "SEDOL Secondary Quote Relationship",////////////////
        	components: [{
				type: "form", 
				contents: [
					{
						title: "SEDOL Maintenance",
						schema: {
							sedol_value: {back: "ASSET.SEDOLVALUE", label: "Value", type: "Text"},
							sedol_begin_date: {back: "ASSET.SEDOLBEGINDATE", label: "Begin Date", type :"Text", readOnly: true}, 		
							sedol_setPri: {back: "ASSET.SEDOLPRIMARY", label: "Set Primary", type: "Checkbox"}
						}
					},
					{
						title: "ISE OPOL Maintenance",
						schema: {
							opol_value: {back: "ASSET.OPOLVALUE", label: "Value", type :"Text", readOnly: true},
							opol_meaning: {back: "ASSET.OPOLMEANING", label: "Meaning", type :"Text", readOnly: true},
							opol_begin_date: {back: "ASSET.OPOLBEGINDATE", label: "Begin Date", type :"Text", readOnly: true}
						}
					},
					{
						title: "Common",
						schema: {
							sedol_commonname: {back: "ASSET.SEDOLCOMMONNAME", label: "Common Name", type: "Text"}		
						}
					}
				]},
	        	{
					type: "table", 
					id: "sedol",
					caption: "SEDOL Secondary Quote Relationship", 
					history: true, 
					cols : [
		        		{name: "RIC", field: "ric", type: "String" },
		        		{name: "Asset State", field: "asset_state", type: "String"},
		        		{name: "Common Name", field: "common_name", type: "String"},
		        		{name: "MIC", field: "mic", type: "String"},
		        		{name: "Target Listing", field: "target_listing", type: "Checkbox"}
	        		]
				}
        	]	
        },
        
        //refData: {title: "Search Reference Data", components: []},
        
        crsUnit: {
        	title: "Cross Unit Conversion",
        	components: [
        	    {
        	    	type: "table",
        	    	id: "crsUnit",
        	    	caption: "Cross Unit Conversion",  
        	    	actions: [2,4],
        	    	cols : [
        	        	{name: "Type Name", field: "type_name", type: "String", editable: true, editType: "SelectDropdown" },
        	        	{name: "Type Meaning", field: "type_meaning", type: "String", editable: true, editType: "SelectDropdown"},
        	        	{name: "Factor", field: "factor", type: "String", editable: true, editType: "Text"}
        	        ]
        	    }
        	]
        },
        assetRelationship: {
        	title: "Asset Realtionship",////////////////
        	components: [
        	    {	        		
					type: "form", 
					contents: [
						{
							title: "Underlying Asset Relationship to Notional Product", 
							schema: {
								ric: {back: "ASSET.RIC", label: "RIC", type: "Text", validators: ['required']},
		        				category: {back: "ASSET.ASSETCATEGORY", label: "Category", type :"ViewDiv", hasMeaning: true} 			
							}
						}
					]
        	    },
	        	{
					type: "table", 
					id: "assetRelationship",
					title: "Asset Relationship to RCS Underlying Product",
					caption: "Asset Relationship to RCS Underlying Product", 
					history: true, 
					cols : [////////////////////////////
		        		{name: "Location Type", field: "location_type", type: "String", editable: true, editType: "SelectDropdown" },///////////////////////
	        			{name: "Location Name", field: "location_name", type: "String", editable: true, editType: "SelectDropdown"}
		        	]
				}
        	]	
        },
        locations: {
        	title: "Locations",
        	components: [
        	    {
        	    	type: "table",
        	    	id: "locations",
        	    	caption: "Locations",        	    	 
        	    	actions: [1,3,4],
        	    	cols : [
        	        	{name: "Location Type", field: "location_type", type: "String", editable: true, editType: "SelectDropdown" },
        	        	{name: "Location Name", field: "location_name", type: "String", editable: true, editType: "SelectDropdown"},
        	        	{name: "Location Description", field: "location_desp", type: "String", editable: true, editType: "SelectDropdown"}
        	        ]
        	    }
        	]        	                                   
        },
        miscellaneous: {
        	title: "Miscellaneous", template: "miscellaneous",////////////////
        	components: [{
				type: "form", 
				contents: [
					{
						title: "EM Admin Status",
						schema: {
							emadmin_status: {back: "", label: "EM Admin Status", type: "Text", readOnly:true},
		    		    	emadmin_meaning: {back: "", label: "EM Admin Status Meaning", type :"Text", readOnly:true},
		    		    	emadmin_begin_date: {back: "", label: "Begin Date", type: "Text", readOnly:true}			
						}
					},
					{
						title: "Time Series",
						schema: {
							timeseries_adjusted: {back: "", label: "Basic Gap Adjusted", type: "Checkbox", readOnly: true},
							timeseries_trigger: {back: "", label: "Basic Gap Adjustment Trigger", type :"Text", readOnly:true}			
						}
					}
				]
        	}]	
        }			
	}
};

var form_columns = {};